const express = require('express');
const router = express.Router();

// 测试接口
router.get('/tree', (req, res) => {
  res.json({
    code: 200,
    msg: 'success',
    data: [
      {
        key: 1,
        title: 'node1',
        children: [
          {
            key: 2,
            title: 'node1-1',
            children: [
              {
                key: 3,
                title: 'node1-1-1',
                children: []
              }
            ]
          }
        ]
      }
    ]
  });
});


module.exports = router;
